<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property string $name 方案名称
 * @property int $room_name_keyword_match_type 群名关键词匹配类型：0=含任意关键词 1=含所有关键词
 * @property array $room_name_keywords 群名关键词
 * @property int $room_tag_match_type 群标签匹配类型：0=含任意标签 1=含所有标签 2=未打任何标签
 * @property array $room_tags 群标签
 * @property array $role 在群角色[0,1,2] 0=群主  1=管理员 2=普通角色
 * @property int $min_members 群人数最小值
 * @property int $max_members 群人数最大值
 * @property string $created_start_date 建群开始时间
 * @property string $created_end_date 建群结束时间
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChRoomPreset extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_room_preset';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'name', 'room_name_keyword_match_type', 'room_name_keywords', 'room_tag_match_type', 'room_tags', 'role', 'min_members', 'max_members', 'created_start_date', 'created_end_date', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'room_name_keyword_match_type' => 'integer', 'room_name_keywords' => 'array', 'room_tag_match_type' => 'integer', 'room_tags' => 'array', 'role' => 'array', 'min_members' => 'integer', 'max_members' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
